package com.cwj;

import org.springframework.web.bind.annotation.*;

import java.util.Map;

@RestController
public class HelloController {

    @GetMapping("hello1")
    public String hello(){
        return "hello1";
    }

    @PostMapping("hello2")
    public String hello2(@RequestBody Map<String, Object> map){
        return "hello2";
    }
}
